<html><head><title>CopyEntity</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CopyEntity()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>CopyEntity</b></font>(#Entity, #NewEntity)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>


Creates a #NewEntity which is the exact copy of the specified #Entity. If <a href="../reference/purebasic_objects.html">#PB_Any</a> is used 
as '#NewEntity' parameter, the new entity number will be returned as 'Result'. 
<br>
<br>
If the 'Result' is 0, the entity copy has failed. If #NewEntity was already created, 
it will be automatically freed and replaced by the new one. 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=attachentityobject.html>AttachEntityObject()</a> - <a href="index.html">Entity Index</a> - <a href="createentity.html">CreateEntity()</a> -><br><br>

</body></html>